package com.xc.tjise.TJISE.day08;

import java.io.*;

public class BufferStreamTest {
    public static void main(String[] args) throws IOException {
        BufferedReader bufferedReader=new BufferedReader(new FileReader("C:\\Users\\Administrator\\IdeaProjects\\untitled\\src\\TJISE\\day08\\BufferStreamTest.java"));
//        BufferedWriter bufferedWriter =new BufferedWriter("");
                  String line ;
                  while((line=bufferedReader.readLine())!=null){
                      System.out.println(line);
                  }

    }
}







 /*   BufferedInputStream bufferedInputStream =new BufferedInputStream(new FileInputStream("D:/Ra2Game412/gamemd-spawn.exe"));
        BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream("Red2.exe"));
        int i;
        long start = System.currentTimeMillis();
        while((i=bufferedInputStream.read())!=-1){
            bufferedOutputStream.write(i);
        }

        System.out.println(System.currentTimeMillis()-start+"ms");
        bufferedInputStream.close();
        bufferedOutputStream.close();*/